<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>练习2-盒子模型</title>
    <style>
        div{
            width:700px;
            height: auto;
            margin: auto;

            /* 上边框 */
            border-top: 3px solid orangered;
            /* 下边框 */
            border-bottom: 1px solid grey;
        }

        a{
            /* 将行级元素，转换成inline-block元素 */
            display: inline-block;
            width: 100px;
            height: 40px;

            /* 水平居中 */
            text-align: center;
            line-height: 40px;

            /* 超链接样式取消 */
            text-decoration: none;
            color: black;
        }

        a:hover{
            background-color: lightgray;
        }
    </style>
</head>
<body>
    <div>
        <a href="#">首页</a>
        <a href="#">手机新浪网</a>
        <a href="#">移动客户端</a>
        <a href="#">博客</a>
        <a href="#">微博</a>
        <a href="#">关注我</a>
    </div>
</body>
</html>